﻿using JXC.Core.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JXC.Core.Models;

namespace JXC.Application.Services
{
    public class ShopServices :IShopServices
    {
        private readonly IRepository<CommodityInformationSheet, Guid> _repository;
        public ShopServices(IRepository<CommodityInformationSheet,Guid> repository)
        {
            _repository = repository;
        }

        public Task<List<CommodityInformationSheet>> GetShopInfos()
        {
            return _repository.GetAllListAsync();
        }
    }
}
